import {Component, EventEmitter, Output} from '@angular/core';
import {PageTitleService} from "../page-title.service";
import 'rxjs/add/operator/first';


@Component({
  selector: 'app-page-header',
  templateUrl: './page-header.component.html',
  styleUrls: ['./page-header.component.scss']
})
export class PageHeaderComponent {


  constructor(public _pageTitle: PageTitleService) { }

  // the outer component need to set this page's title
  // using using a service to do this event transport

  @Output() toggleSidenav = new EventEmitter<void>();

  getTitle() {
    return this._pageTitle.title;
  }

}
